﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GioHang.aspx.cs" Inherits="WebForm.GioHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="searchbox" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="clear:both; display:block; height:40px"></div>
                	<h2>Giỏ hàng</h2>
                    <form id="form1" runat="server">
                    <div class="contentbox">
                    <div class="">
                    
                    <asp:DataGrid ID="grdCart" runat="server" AllowPaging="false" 
                    AutoGenerateColumns="false" CellPadding="6" ForeColor="#33333" Width="100%" 
                    onitemcommand="grdCart_ItemCommand1"   >
                    <AlternatingItemStyle BackColor="Wheat" />
                    <HeaderStyle CssClass="trHeader" />
                    <Columns>
                        <asp:BoundColumn DataField="id" HeaderText="Id" Visible="false"></asp:BoundColumn>
                        <asp:BoundColumn DataField="masp" HeaderText="Mã SP" ItemStyle-Width="100px" ></asp:BoundColumn>
                        <asp:BoundColumn DataField="ten" HeaderText="Tên SP" ItemStyle-Width="100px" ></asp:BoundColumn>                  
                        <asp:BoundColumn DataField="soluong" HeaderText="Số lượng" ItemStyle-Width="100px" ></asp:BoundColumn>
                        <asp:BoundColumn DataField="dongia" HeaderText="Đơn giá" ItemStyle-Width="100px" ></asp:BoundColumn>
                        <asp:BoundColumn DataField="thanhtien" HeaderText="Thành tiền" ItemStyle-Width="100px" ></asp:BoundColumn>
                    <asp:TemplateColumn>
                        <HeaderTemplate>Xoá</HeaderTemplate>
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="lbt1" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"Id" ) %>' CommandName="Delete" ToolTip="Xóa" OnClientClick="return confirm('Xoá hả?')"> Xóa </asp:LinkButton>
                         </ItemTemplate>
                    </asp:TemplateColumn>
                    </Columns>
                    <EditItemStyle BackColor="#2461BF" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="true" ForeColor="White" />
                    <ItemStyle BackColor="#EFF3FB" />
                    <PagerStyle BackColor="#F3F8FE" Font-Bold="true" ForeColor="Blue" HorizontalAlign="Center" Mode="NumericPages" />
                    <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="true" ForeColor="#33333" />
        </asp:DataGrid>

        </div><!--cartoptionbox-->

                        <!--end:alltotal-->
        <div style="clear:both; display:block; height:40px"></div>
        <br /> <br />
        <div class="alltotal one-half">
        <table class="alltotal">
            <tr>
            <td><span class="extra grandtotal">Tổng :</span></td>
            <asp:Label ID="label_tongtien" runat="server"></asp:Label>
            </tr>
        </table>
        <asp:Button id="Button_Tieptuc" value="Tiếp tục mua hàng" runat="server" Text="Tiếp tục mua hàng" OnClick="Button_Tieptuc_Click"/>
        <asp:Button id="Button_Thanhtoan" value="Thanh toán" runat="server" Text="Thanh toán" OnClick="Button_Thanhtoan_Click"/>
        
        
        </div>
        </div><!--end:contentbox-->
        </form>
        <div style="clear:both; display:block; height:40px"></div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
